package com.sj.purchase.manager.stages;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @author yangrd
 * @date 2018/8/10
 **/
public class StagesOrder {

    private static final String STAT_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";

    /**
     * id订单号
     */
    private String id;

    /**
     * 交易生成时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = STAT_DATE_FORMAT, timezone = "GMT+8")
    private Date createTime;

    /**
     * 支付时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = STAT_DATE_FORMAT, timezone = "GMT+8")
    private Date payTime;

    /**
     * 支付宝交易单号
     */
    private String alipayNo;

    /**
     * 订单总价格
     */
    private Float totalPrice;

    /**
     * 购买人旺旺id
     */
    private String buyerId;

    /**
     * 购买人旺旺昵称
     */
    private String buyerNick;

    /**
     * 购买人手机号
     */
    private String buyerPhone;

    /**
     * 购买人详细地址
     */
    private String buyerAddress;

    /**
     * 分期付款价格
     */
    private Float stagesPrice;

    /**
     * 分期付款期数
     */
    private Integer stagesNUm;

    /**
     * 买家单期手续费
     */
    private Float counterFee;

    /**
     * 买家手续费
     */
    private Float totalCounterFee;

    /**
     * 卖家手续费
     */
    private Float seller;

    /**
     * 优惠
     */
    private Float discount;

    /**
     * 店铺名称
     */
    private String shop;


    public String getId() {
        return id;
    }

    public StagesOrder setId(String id) {
        this.id = id;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public StagesOrder setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public Date getPayTime() {
        return payTime;
    }

    public StagesOrder setPayTime(Date payTime) {
        this.payTime = payTime;
        return this;
    }

    public String getAlipayNo() {
        return alipayNo;
    }

    public StagesOrder setAlipayNo(String alipayNo) {
        this.alipayNo = alipayNo;
        return this;
    }

    public Float getTotalPrice() {
        return totalPrice;
    }

    public StagesOrder setTotalPrice(Float totalPrice) {
        this.totalPrice = totalPrice;
        return this;
    }

    public String getBuyerId() {
        return buyerId;
    }

    public StagesOrder setBuyerId(String buyerId) {
        this.buyerId = buyerId;
        return this;
    }

    public String getBuyerNick() {
        return buyerNick;
    }

    public StagesOrder setBuyerNick(String buyerNick) {
        this.buyerNick = buyerNick;
        return this;
    }

    public String getBuyerPhone() {
        return buyerPhone;
    }

    public StagesOrder setBuyerPhone(String buyerPhone) {
        this.buyerPhone = buyerPhone;
        return this;
    }

    public String getBuyerAddress() {
        return buyerAddress;
    }

    public StagesOrder setBuyerAddress(String buyerAddress) {
        this.buyerAddress = buyerAddress;
        return this;
    }

    public Float getStagesPrice() {
        return stagesPrice;
    }

    public StagesOrder setStagesPrice(Float stagesPrice) {
        this.stagesPrice = stagesPrice;
        return this;
    }

    public Integer getStagesNUm() {
        return stagesNUm;
    }

    public StagesOrder setStagesNUm(Integer stagesNUm) {
        this.stagesNUm = stagesNUm;
        return this;
    }

    public Float getCounterFee() {
        return counterFee;
    }

    public StagesOrder setCounterFee(Float counterFee) {
        this.counterFee = counterFee;
        return this;
    }

    public Float getTotalCounterFee() {
        return totalCounterFee;
    }

    public StagesOrder setTotalCounterFee(Float totalCounterFee) {
        this.totalCounterFee = totalCounterFee;
        return this;
    }

    public Float getSeller() {
        return seller;
    }

    public StagesOrder setSeller(Float seller) {
        this.seller = seller;
        return this;
    }

    public Float getDiscount() {
        return discount;
    }

    public StagesOrder setDiscount(Float discount) {
        this.discount = discount;
        return this;
    }

    public String getShop() {
        return shop;
    }

    public StagesOrder setShop(String shop) {
        this.shop = shop;
        return this;
    }
}
